package com.fsc.mapper;

import com.fsc.entity.domain.SchoolInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fsc.entity.domain.SchoolNews;
import com.fsc.entity.domain.SchoolPicture;
import com.fsc.entity.domain.StudentInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 86183
* @description 针对表【school_info(学校信息表)】的数据库操作Mapper
* @createDate 2024-06-02 13:15:22
* @Entity com.fsc.domain.SchoolInfo
*/

@Mapper
public interface SchoolInfoMapper extends BaseMapper<SchoolInfo> {
    @Select("SELECT * FROM school_info WHERE school_id= #{schoolId}")
    SchoolInfo getSchoolById(int schoolId);

    @Select("SELECT * FROM school_news WHERE school_id= #{schoolId}")
    List<SchoolNews> getSchoolNews(int schoolId);

    @Select("SELECT * FROM school_picture WHERE school_id= #{schoolId}")
    List<SchoolPicture> getSchoolPicture(int schoolId);
}




